package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.Collections;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class UsingCollectionsReverseMethod {
	public static void main(String[] args) {
		ArrayList<String> arrayList = new ArrayList<>();
		arrayList.add("A");
		arrayList.add("B");
		arrayList.add("C");

		System.out.println("反向前，ArrayList 元素:" + arrayList);
		Collections.reverse(arrayList);
		System.out.println("反向后，ArrayList 元素:" + arrayList);
	}
}
